﻿using System;
using System.Collections.Generic;

namespace AMS.DataAccess.Sys.BO
{
    [DBTable("TS_Dept")]
    public class DeptInfo
    {
        #region Database Column Fields
        [DBPrimaryKeyColumn("AID", true)]
        public int AID { get; set; }

        [DBColumn("Name")]
        public string Name { get; set; }

        /// <summary>
        /// Not used currently.
        /// </summary>
        [DBColumn("DeptType", 0)]
        public int DeptType { get; set; }

        [DBColumn("OnwerDept", 0)]
        public int OnwerDept { get; set; }

        [DBColumn("Leader")]
        public string Leader { get; set; }

        [DBColumn("Address")]
        public string Address { get; set; }

        [DBColumn("ZipCode")]
        public string ZipCode { get; set; }

        [DBColumn("Tel")]
        public string Tel { get; set; }

        [DBColumn("Note")]
        public string Note { get; set; }

        [DBColumn("isReadOnly")]
        public bool isReadOnly { get; set; }

        [DBDateTime("CreateDateTime", DateTimeType.DateTime, false, true)]
        public DateTime CreateDateTime { get; set; }

        [DBColumn("CreateUserID", false, true)]
        public int CreateUserID { get; set; }

        #endregion

        public List<UserInfo> Users { get; set; }
    }
}
